#include "State.h"

ostream &operator<<(ostream &aOut, const State& aState) {
#ifdef DEBUG
  for (uint16_t i=0;i<aState.pNumber;++i) {
    aOut << aState[i] << "\t";
  }
  return aOut << aState.getPrice() << endl;
#else
  for (uint16_t i=0;i<aState.pNumber;++i) {
    for (uint16_t j=0;j<aState.pNumber;++j) {
      if (i == j) aOut << aState[i];
      else aOut << (*aState.pInstance)(i,j);
    }
    aOut << endl;
  }
  return aOut;
#endif
}

// vim: ts=2 fdm=marker syntax=cpp expandtab sw=2
